package com.wanghua.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanghua.common.utils.PageUtils;
import com.wanghua.mall.ware.entity.PurchaseEntity;
import com.wanghua.mall.ware.vo.FinishPurchaseVo;
import com.wanghua.mall.ware.vo.MergePurchaseDetailVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author wanghua
 * @email 2367279431@qq.com
 * @date 2021-08-25 21:29:07
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     */
    PageUtils listUnReceive(Map<String, Object> params);

    //合并采购需求
    void mergePurchaseDetail(MergePurchaseDetailVo mergePurchaseDetailVo);

    //领取采购单
    void receivePurchase(List<Long> purchaseIds);

    //完成采购
    void donePurchase(FinishPurchaseVo finishPurchaseVo);
}

